#!/usr/bin/env/python
# -*- coding: utf-8 -*- 

# @File : Client.py 
# @Author : t_fengyun
# @Time : 2019/9/9 16:37 
# @desc : there is description 
import socket

client = socket.socket()
ip_port = ('localhost',1234)

client.connect(ip_port)

while True:
    data = input('please input >>:')
    if len(data)==0:continue
    print('我要发数据啦')
    client.sendall(data.encode('utf-8'))
    recv_data = client.recv(1024)
    print('received all:',repr(recv_data))

client.close()

